package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 产品信息对象 product
 * 
 * @author ruoyi
 * @date 2025-01-17
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 产品代码 */
    @Excel(name = "产品代码")
    private String code;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 工厂代码 */
    @Excel(name = "工厂代码")
    private String factoryCode;

    /** 内部代码 */
    @Excel(name = "内部代码")
    private String innerCode;

    /** 规格 */
    @Excel(name = "规格")
    private String spec;

    /** 产品类型ID */
    @Excel(name = "产品类型ID")
    private Long productTypeId;

    /** 唯一标识 */
    @Excel(name = "唯一标识")
    private String unid;

    /** 预警上限 */
    @Excel(name = "预警上限")
    private Long forewarnUp;

    /** 预警下限 */
    @Excel(name = "预警下限")
    private Long forewarnDown;

    /** 包装类型 */
    @Excel(name = "包装类型")
    private String wrapType;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 重量 */
    @Excel(name = "重量")
    private BigDecimal weight;

    /** 承运商ID */
    private Long caririesId;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long customerId;

    /** 产品信息 */
    @Excel(name = "产品信息")
    private String info;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long storeId;

    /** 位置ID */
    @Excel(name = "位置ID")
    private Long locationId;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setFactoryCode(String factoryCode) 
    {
        this.factoryCode = factoryCode;
    }

    public String getFactoryCode() 
    {
        return factoryCode;
    }
    public void setInnerCode(String innerCode) 
    {
        this.innerCode = innerCode;
    }

    public String getInnerCode() 
    {
        return innerCode;
    }
    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }
    public void setProductTypeId(Long productTypeId) 
    {
        this.productTypeId = productTypeId;
    }

    public Long getProductTypeId() 
    {
        return productTypeId;
    }
    public void setUnid(String unid) 
    {
        this.unid = unid;
    }

    public String getUnid() 
    {
        return unid;
    }
    public void setForewarnUp(Long forewarnUp) 
    {
        this.forewarnUp = forewarnUp;
    }

    public Long getForewarnUp() 
    {
        return forewarnUp;
    }
    public void setForewarnDown(Long forewarnDown) 
    {
        this.forewarnDown = forewarnDown;
    }

    public Long getForewarnDown() 
    {
        return forewarnDown;
    }
    public void setWrapType(String wrapType) 
    {
        this.wrapType = wrapType;
    }

    public String getWrapType() 
    {
        return wrapType;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setCaririesId(Long caririesId) 
    {
        this.caririesId = caririesId;
    }

    public Long getCaririesId() 
    {
        return caririesId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }
    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }
    public void setLocationId(Long locationId) 
    {
        this.locationId = locationId;
    }

    public Long getLocationId() 
    {
        return locationId;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("factoryCode", getFactoryCode())
            .append("innerCode", getInnerCode())
            .append("spec", getSpec())
            .append("productTypeId", getProductTypeId())
            .append("unid", getUnid())
            .append("forewarnUp", getForewarnUp())
            .append("forewarnDown", getForewarnDown())
            .append("wrapType", getWrapType())
            .append("price", getPrice())
            .append("weight", getWeight())
            .append("caririesId", getCaririesId())
            .append("phone", getPhone())
            .append("customerId", getCustomerId())
            .append("info", getInfo())
            .append("storeId", getStoreId())
            .append("locationId", getLocationId())
            .toString();
    }
}
